package aatesting;

public class Factorial {
	
	public static int factorial(int num)
	{
		if(num==1)
			return num;
		return num*factorial(num-1);
	}
	
	public static void main(String args[])
	{
		int size=10;
		for(int i=1; i<size; i++)
			System.out.format("The factorial of %s is %s\n",i, Factorial.factorial(i));
	}
}
